/**
 * Created by Wing on 2016/1/5.
 */
var CONFIG = (function(){
	var constants = {
		STAGE: 2,
		root: '/',
		resourceRoot: '/assets/',
    	layerRoot: '/scripts/layer/'
	};

    /**
	  * @return function
      * for instance：
      * Config(TEST) 
	*/
	return function(name) {
		return constants[name];
    };
}());

//百度统计需要嵌入的js代码
var _hmt = _hmt || [];
(function(){
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?96380d87ffcb70c1568f9c3468f49817";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();

//当手机浏览器访问会自动跳转到App下载的营销页面
var notJumpFlag = !!notJumpFlag;
(function () {
	if (window.navigator.userAgent.indexOf('Mobile') > -1 && !notJumpFlag) {
		window.location = "https://promotion.hdfax.com/search/promotion?marketChannel=W_wapdefault0323";
	}
})();